class BasicCompanyModel {
  int? id;
  int? substationId;
  String? name;
  String? bname;
  int? type;
  String? leaderLinkman;
  String? leaderLinkphone;
  String? techLinkman;
  String? techLinkphone;
  String? serviceTel;
  String? themeColor;
  num? mapLevel;
  num? mapIndex;
  String? address;
  String? longitude;
  String? latitude;
  String? image;
  num? civilArea;
  num? civilFamilyTotal;
  num? publicArea;
  num? publicFamilyTotal;
  String? intro;
  String? coordinates;
  String? pipelineCoordinates;
  int? stationTotal;
  num? listOrder;
  num? status;
  int? createTime;
  int? updateTime;
  int? deleteTime;
  String? substationName;
  String? typeName;
  bool? showMap;

  BasicCompanyModel({
    this.id,
    this.substationId,
    this.name,
    this.bname,
    this.type,
    this.leaderLinkman,
    this.leaderLinkphone,
    this.techLinkman,
    this.techLinkphone,
    this.serviceTel,
    this.themeColor,
    this.mapLevel,
    this.mapIndex,
    this.address,
    this.longitude,
    this.latitude,
    this.image,
    this.civilArea,
    this.civilFamilyTotal,
    this.publicArea,
    this.publicFamilyTotal,
    this.intro,
    this.coordinates,
    this.pipelineCoordinates,
    this.stationTotal,
    this.listOrder,
    this.status,
    this.createTime,
    this.updateTime,
    this.deleteTime,
    this.substationName,
    this.typeName,
    this.showMap,
  });

  BasicCompanyModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    substationId = json['substation_id'];
    name = json['name'];
    bname = json['bname'];
    type = json['type'];
    leaderLinkman = json['leader_linkman'];
    leaderLinkphone = json['leader_linkphone'];
    techLinkman = json['tech_linkman'];
    techLinkphone = json['tech_linkphone'];
    serviceTel = json['service_tel'];
    themeColor = json['theme_color'];
    mapLevel = json['map_level'];
    mapIndex = json['map_index'];
    address = json['address'];
    longitude = json['longitude'];
    latitude = json['latitude'];
    image = json['image'];
    civilArea = json['civil_area'];
    civilFamilyTotal = json['civil_family_total'];
    publicArea = json['public_area'];
    publicFamilyTotal = json['public_family_total'];
    intro = json['intro'];
    coordinates = json['coordinates'];
    pipelineCoordinates = json['pipeline_coordinates'];
    stationTotal = json['station_total'];
    listOrder = json['list_order'];
    status = json['status'];
    createTime = json['create_time'];
    updateTime = json['update_time'];
    deleteTime = json['delete_time'];
    substationName = json['substation_name'];
    typeName = json['type_name'];
    showMap = json['show_map'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['id'] = id;
    data['substation_id'] = substationId;
    data['name'] = name;
    data['bname'] = bname;
    data['type'] = type;
    data['leader_linkman'] = leaderLinkman;
    data['leader_linkphone'] = leaderLinkphone;
    data['tech_linkman'] = techLinkman;
    data['tech_linkphone'] = techLinkphone;
    data['service_tel'] = serviceTel;
    data['theme_color'] = themeColor;
    data['map_level'] = mapLevel;
    data['map_index'] = mapIndex;
    data['address'] = address;
    data['longitude'] = longitude;
    data['latitude'] = latitude;
    data['image'] = image;
    data['civil_area'] = civilArea;
    data['civil_family_total'] = civilFamilyTotal;
    data['public_area'] = publicArea;
    data['public_family_total'] = publicFamilyTotal;
    data['intro'] = intro;
    data['coordinates'] = coordinates;
    data['pipeline_coordinates'] = pipelineCoordinates;
    data['station_total'] = stationTotal;
    data['list_order'] = listOrder;
    data['status'] = status;
    data['create_time'] = createTime;
    data['update_time'] = updateTime;
    data['delete_time'] = deleteTime;
    data['substation_name'] = substationName;
    data['type_name'] = typeName;
    data['show_map'] = showMap;
    return data;
  }
}
